import { Module } from '@nestjs/common';
import { AuthModule } from './auth/auth.module';
import { BookmarkModule } from './bookmark/bookmark.module';
import { PrismaModule } from './prisma/prisma.module';
import { UserModule } from './user/user.module';
import { ConfigModule } from '@nestjs/config';
import { BookModule } from './book/book.module';
import { StudentService } from './student/student.service';
import { StudentController } from './student/student.controller';
import { StudentModule } from './student/student.module';
import { BorrowService } from './borrow/borrow.service';
import { BorrowController } from './borrow/borrow.controller';
import { BorrowModule } from './borrow/borrow.module';
@Module({
  imports: [
    ConfigModule.forRoot({ isGlobal: true }),
    AuthModule,
    UserModule,
    BookmarkModule,
    PrismaModule,
    BookModule,
    StudentModule,
    BorrowModule,
  ],
  providers: [StudentService, BorrowService],
  controllers: [StudentController, BorrowController],
})
export class AppModule {}
